<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>壹码当先 - 专注少儿编程</title>

    <script type="text/javascript" src="/pages/js/jquery.min.js"></script>
    <script type="text/javascript">
        $(function () {
            /**
             * 预约课程
             */
            $("#Reservation").click(function () {
                var url = "/reservation/save";
                var reservationName = "首页";
                var reservationMobile = $("#reservationMobile").val();
                var courseId = $("#courseId").val();
                if (checkSubmitMobil(reservationMobile)) {
                    $.post(url, {
                        reservationName: reservationName,
                        reservationMobile: reservationMobile,
                        courseId: courseId
                    }, function (result) {
                        if (result.status === 1) {
                            alert("预约成功！");
                        }
                        else {
                            alert("预约失败！");
                        }
                        //alert(JSON.stringify(result));
                    })
                }

            });

            /**
             * 用来获取课程目录
             */
            $.post("/course/list", {}, function (result) {
                if (result.status === 1) {
                    var html = '';
                    var list = result.data;
                    for (var i = 0; i < list.length; i++) {
                        html += '<option value="' + list[i].id + '">' + list[i].name + '</option>';
                    }
                    $("#courseId").html(html);
                }
            });

            //加载作品列表
            loadProductions();
        })

        //验证手机号
        function checkSubmitMobil(mobile) {
            if (mobile == "") {
                alert("手机号不能为空");
                return false;
            }

            if (!mobile.match(/^1[3|4|5|8][0-9]\d{4,8}$/)) {
                alert("手机号码格式不正确！请重新输入！");
                return false;
            }
            return true;
        }

        //加载作品信息
        function loadProductions() {
            var url = "/product/show";
//            var pageSize = $("#pageSize").val();
//            var pageNo = $("#pageNo").val();
            $.post(url, {}, function (result) {
                if ((!result.hasOwnProperty('status'))) {
                    if (result.result.length > 0) {
                        var start = '<div class="row">';
                        var end = '</div>';
                        var html = '';
                        var products = result.result;
                        for (var i = 0; i < products.length; i++) {
                            if (i % 3 == 0) {
                                html += start;
                            }
                            html += '<div class="col-md-3 col-sm-6">' +
                                    '<div class="gt_event_grid default_width mb30">' +
                                    '<figure>' +
                                    '<img src="'+products[i].sbimage+'" alt="">' +
                                    '<figcaption class="gt_event_grid_date">' +
                                    '01<span>July</span>' +
                                    '</figcaption>' +
                                    '</figure>' +
                                    '<div class="gt_event_grid_des default_width">' +
                                    '<h6>'+products[i].name+'</h6>' +
                                    '<ul class="gt_event_meta">' +
                                    '<li><i class="fa fa-map-marker"></i>作者：'+products[i].author+'</li>' +
                                    '</ul>' +
                                    '<p>简介:'+products[i].introduction+'</p>' +
                                    '<a href="#">查看详情</a>' +
                                    '</div>' +
                                    '</div>' +
                                    '</div>';
                            if(i%3==0){
                                html+=end;
                            }
                        }
                        $("#productions").html(html);
                    }
                }

            })

        }


    </script>

    <link href="/pages/css/kefu.css" rel="stylesheet">
    <script type="text/javascript" src="/pages/js/jquery001.js"></script>
    <!-- Animation CSS -->
    <link href="/pages/css/animate.css" rel="stylesheet">
    <!-- Chosen CSS -->
    <link href="/pages/css/chosen.min.css" rel="stylesheet">
    <!-- Chosen CSS -->
    <link href="/pages/css/login-register.css" rel="stylesheet">
    <!-- Swiper Slider CSS -->
    <link href="/pages/css/flexslider.css" rel="stylesheet">
    <!-- Pretty Photo CSS -->
    <link href="/pages/css/prettyPhoto.css" rel="stylesheet">
    <!-- Swiper Slider CSS -->
    <link href="/pages/css/swiper.css" rel="stylesheet">
    <!-- Custom Main StyleSheet CSS -->
    <link href="/pages/style.css" rel="stylesheet">
    <!-- Color CSS -->
    <link href="/pages/css/color-2.css" rel="stylesheet">
    <!-- Typography StyleSheet CSS -->
    <link href="/pages/css/typography-02.css" rel="stylesheet">
    <!-- Responsive CSS -->
    <link href="/pages/css/responsive.css" rel="stylesheet">

</head>

<body onload="IFrameResize()">

<script type="text/javascript">
    function IFrameResize() {
        //alert(this.document.body.scrollHeight); //弹出当前页面的高度
        var obj = parent.document.getElementById("iframe1");  //取得父页面IFrame对象
        //alert(obj.height); //弹出父页面中IFrame中设置的高度
        obj.height = this.document.body.scrollHeight;  //调整父页面中IFrame的高度为此页面的高度
    }
</script>

<!--Banner Wrap Start-->
<div class="gt_banner default_width">
    <!-- 子页面顶部锚点 -->

    <div class="swiper-container" id="swiper-container">
        <ul class="swiper-wrapper">
            <li class="swiper-slide">
                <img src="/pages/extra-images/banner-04.jpg" alt="">
                <div class="gt_banner_text gt_slide_1">
                    <h3>为什么选择壹码当先</h3>
                    <h2>壹码当先欢迎你</h2>
                    <p>金牌教练团队确保竞赛水平，高校信息专业老师研究创造性课程，培养学员逻辑思维、编程思想与创造性思考方式</p>
                    <a href="#">查看详情<i class="fa fa-arrow-right"></i></a>
                </div>
            </li>
            <li class="swiper-slide">
                <img src="/pages/extra-images/banner-05.jpg" alt="">
                <div class="gt_banner_text gt_slide_2">
                    <h3>让您的孩子赢在起跑线</h3>
                    <h2>少儿编程好处多</h2>
                    <p>提升逻辑思维、提高专注度、正确看待电脑与游戏、提升综合学习能力</p>
                    <a href="#">查看详情<i class="fa fa-arrow-right"></i></a>
                </div>
            </li>
            <li class="swiper-slide">
                <img src="/pages/extra-images/banner-06.jpg" alt="">
                <div class="gt_banner_text gt_slide_3">
                    <h3>Excellent Works</h3>
                    <h2>学员优秀作品</h2>
                    <p>来看看壹码当先小学员们自己做的作品吧</p>
                    <a href="#">查看详情<i class="fa fa-arrow-right"></i></a>
                </div>
            </li>
        </ul>
    </div>
    <div class="swiper-button-next"><i class="fa fa-angle-right"></i></div>
    <div class="swiper-button-prev"><i class="fa fa-angle-left"></i></div>
</div>
<!--Banner Wrap End-->

<!--Main Content Wrap Start-->
<div class="gt_content_wrap">
    <!--Search Bar Wrap Start-->
    <div class="container">
        <div class="gt_search02_wrap default_width">
            <div class="col-md-7 col-sm-6 no_padding">
                <div class="gt_cat_search">
                    <input id="reservationMobile" class="ph_news" type="text" placeholder="输入手机号免费预约听课">
                </div>
            </div>
            <div class="col-md-3 col-sm-4 no_padding">
                <div class="gt_cat_search">
                    <select id="courseId" style="height: 50px;">

                    </select>
                </div>
            </div>
            <div class="col-md-2 col-sm-2 no_padding">
                <div class="gt_cat_search">
                    <input id="Reservation" class="ph_news" type="submit" value="提交预约">
                </div>
            </div>
        </div>
    </div>
    <!--Search Bar Wrap End-->

    <!--Services Wrap Start-->
    <section>
        <div class="container">


            <div class="row">
                <div class="col-md-6">
                    <div class="get_started_video">
                        <img src="/pages/extra-images/welcome-eduskill.png" alt="">
                        <div class="get_video_icon">
                            <a data-rel="prettyPhoto" href="https://www.bilibili.com/video/av964150/?from=search&seid=15033200578785188074/"><i
                                    class="fa fa-play"></i></a>
                            <span>播放“编程一小时”视频</span>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="get_started_content_wrap ct_blog_detail_des_list">
                        <h3>关于壹码当先</h3>
                        <br>
                        <p>壹码当先是由一群沉迷信息学教育，且坚信“编程从娃娃抓起”的高校奶爸们在2017年创建的青少年信息技术培训机构。</p>
                        <br>
                        <p>我们致力于打造最优质的少儿编程课业体系，立志在中国青少年群体中推广程序设计，让更多的孩子爱上编程，让更多的程序mead in china。</p>
                        <br>
                        <ul>
                            <li>最优化的师资</li>
                            <li>最科学系统的信息学教育体系</li>
                            <li>最严谨的质量控制</li>
                            <li>最有温度的学校</li>
                            <li>点击了解更多</li>
                        </ul>
                    </div>
                </div>
            </div>

        </div>
    </section>
    <!--Services Wrap End-->

    <!--Figures & Facts Wrap Start-->
    <section class="ct_facts_bg">
        <div class="container">
            <ul class="gt_facts2_wrap">
                <li>
                    <i class="fa fa-users"></i>
                    <h3 class="counter">100</h3>
                    <span>先进教学理念</span>
                </li>
                <li>
                    <i class="icon-diploma"></i>
                    <h3 class="counter">100</h3>
                    <span>优秀授课教师</span>
                </li>
                <li>
                    <i class="icon-cup-1"></i>
                    <h3 class="counter">100</h3>
                    <span>舒适课堂环境</span>
                </li>
                <li>
                    <i class="icon-computer"></i>
                    <h3 class="counter">100</h3>
                    <span>提高编程能力</span>
                </li>
            </ul>
        </div>
    </section>
    <!--Figures & Facts Wrap End-->

    <!--Explore the Courses 02 Wrap Start-->
    <section class="gt_exp_course_bg">
        <div class="container">
            <!--Heading 02 Wrap Start-->
            <div class="gt_hdg_1 default_width">
                <h3>壹码当先热门课程</h3>
                <p>“壹码当先”的少儿编程课体系囊括了从启蒙到竞赛所需的所有门类，且课程层层衔接，确保小学员们获得最系统、最全面的少儿编程教育。</p>
                <span class="gt_hdg02_span"></span>
            </div>
            <!--Heading 02 Wrap End-->

            <!--Explore Courses List Wrap Start-->
            <div class="row">
                <div class="col-md-4 col-sm-6">
                    <div class="gt_expl_course_wrap exp_course1 default_width">
                        <figure>
                            <img src="/pages/extra-images/explore-01.jpg" alt="">
                            <figcaption class="gt_expl_course_tag exp_course1">Scratch</figcaption>
                        </figure>
                        <div class="gt_exp_course_hdg">
                            <i class="icon-people"></i>
                            <h6>Scratch初级班</h6>
                        </div>
                        <div class="gt_exp_hvr_des">
                            <span><i class="icon-people"></i></span>
                            <h6>Scratch初级班</h6>
                            <p>认识和熟悉Scratch软件的基本功能和操作方法，进行趣味小程序的编写</p>
                            <div class="gt_exp_hvr_des_lnk">
                                <p><span>2000</span>/20课时</p>
                                <a href="/pages/ymdx/course/course.html">查看更多</a>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-4 col-sm-6">
                    <div class="gt_expl_course_wrap exp_course2 default_width">
                        <figure>
                            <img src="/pages/extra-images/explore-02.jpg" alt="">
                            <figcaption class="gt_expl_course_tag exp_course2">Scratch</figcaption>
                        </figure>
                        <div class="gt_exp_course_hdg">
                            <i class="icon-business"></i>
                            <h6>Scratch中级班</h6>
                        </div>
                        <div class="gt_exp_hvr_des">
                            <span><i class="icon-business"></i></span>
                            <h6>Scratch中级班</h6>
                            <p> 了解软件编程的核心技能,强化逻辑思维能力和实践创新能力</p>
                            <div class="gt_exp_hvr_des_lnk">
                                <p><span>3600</span>/30课时</p>
                                <a href="/pages/ymdx/course/course.html">查看更多</a>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-4 col-sm-6">
                    <div class="gt_expl_course_wrap exp_course3 default_width">
                        <figure>
                            <img src="/pages/extra-images/explore-03.jpg" alt="">
                            <figcaption class="gt_expl_course_tag exp_course3">Scratch</figcaption>
                        </figure>
                        <div class="gt_exp_course_hdg">
                            <i class="icon-link"></i>
                            <h6>Scratch高级班</h6>
                        </div>
                        <div class="gt_exp_hvr_des">
                            <span><i class="icon-link"></i></span>
                            <h6>Scratch高级班</h6>
                            <p>与高级编程的学习进行衔接，具备初级软件工程师核心技能和编程思想</p>
                            <div class="gt_exp_hvr_des_lnk">
                                <p><span>3600</span>/30课时</p>
                                <a href="/pages/ymdx/course/course.html">查看更多</a>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-4 col-sm-6">
                    <div class="gt_expl_course_wrap exp_course4 default_width">
                        <figure>
                            <img src="/pages/extra-images/explore-04.jpg" alt="">
                            <figcaption class="gt_expl_course_tag exp_course4">C/C++</figcaption>
                        </figure>
                        <div class="gt_exp_course_hdg">
                            <i class="icon-circle"></i>
                            <h6>Python/C语言编程初级班</h6>
                        </div>
                        <div class="gt_exp_hvr_des">
                            <span><i class="icon-circle"></i></span>
                            <h6>Python/C语言编程初级班</h6>
                            <p>熟悉编程基础知识点（函数、运算、控制结构、数据结构、基本算法）</p>
                            <div class="gt_exp_hvr_des_lnk">
                                <p><span>暂定</span>/30课时</p>
                                <a href="/pages/ymdx/course/course.html">查看更多</a>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-4 col-sm-6">
                    <div class="gt_expl_course_wrap exp_course5 default_width">
                        <figure>
                            <img src="/pages/extra-images/explore-05.jpg" alt="">
                            <figcaption class="gt_expl_course_tag exp_course5">C/C++</figcaption>
                        </figure>
                        <div class="gt_exp_course_hdg">
                            <i class="icon-null"></i>
                            <h6>Python/C语言编程加强班</h6>
                        </div>
                        <div class="gt_exp_hvr_des">
                            <span><i class="icon-null"></i></span>
                            <h6>Python/C语言编程提高班</h6>
                            <p>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</p>
                            <div class="gt_exp_hvr_des_lnk">
                                <p><span>暂定</span>/X课时</p>
                                <a href="/pages/ymdx/course/course.html">查看更多</a>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-4 col-sm-6">
                    <div class="gt_expl_course_wrap exp_course6 default_width">
                        <figure>
                            <img src="/pages/extra-images/explore-06.jpg" alt="">
                            <figcaption class="gt_expl_course_tag exp_course6">C/C++</figcaption>
                        </figure>
                        <div class="gt_exp_course_hdg">
                            <i class="icon-null-1"></i>
                            <h6>Python/C语言高级班</h6>
                        </div>
                        <div class="gt_exp_hvr_des">
                            <span><i class="icon-null-1"></i></span>
                            <h6>Python/C语言高级班</h6>
                            <p>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</p>
                            <div class="gt_exp_hvr_des_lnk">
                                <p><span>暂定</span>/X课时</p>
                                <a href="/pages/ymdx/course/course.html">查看更多</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!--Explore Courses List Wrap End-->

            <!--See More Button Wrap Start-->
            <div class="gt_see_more_btn default_width" style="width: 160px; left: 50%; margin-left: -80px;">
                <a href="/pages/ymdx/course/course.html">全部课程 <i class="fa fa-arrow-circle-left"></i></a>
            </div
            <!--See More Button Wrap End-->

        </div>
    </section>
    <!--Explore the Courses 02 Wrap End-->

    <!--show student work-->
    <div class="gt_content_wrap">
        <!--Event Grid Wrap Start-->
        <section class="gt_courses_bg">
            <div class="container" id="productions">
                <div class="row">
                    <div class="col-md-3 col-sm-6">
                        <div class="gt_event_grid default_width mb30">
                            <figure>
                                <img src="/pages/extra-images/event-grid-01.jpg" alt="">
                                <figcaption class="gt_event_grid_date">
                                    01<span>July</span>
                                </figcaption>
                            </figure>
                            <div class="gt_event_grid_des default_width">
                                <h6>点球大战</h6>
                                <ul class="gt_event_meta">
                                    <li><i class="fa fa-map-marker"></i>作者：XXX</li>
                                </ul>
                                <p>简介blablablablablabla</p>
                                <a href="#">查看详情</a>
                                <!-- <a href="#">Register</a> -->
                            </div>
                        </div>
                    </div>
                    <div class="col-md-3 col-sm-6">
                        <div class="gt_event_grid default_width mb30">
                            <figure>
                                <img src="/pages/extra-images/event-grid-02.jpg" alt="">
                                <figcaption class="gt_event_grid_date">
                                    01<span>July</span>
                                </figcaption>
                            </figure>
                            <div class="gt_event_grid_des default_width">
                                <h6>点球大战</h6>
                                <ul class="gt_event_meta">
                                    <li><i class="fa fa-map-marker"></i>作者：XXX</li>
                                </ul>
                                <p>简介blablablablablabla</p>
                                <a href="#">查看详情</a>
                                <!-- <a href="#">Register</a> -->
                            </div>
                        </div>
                    </div>
                    <div class="col-md-3 col-sm-6">
                        <div class="gt_event_grid default_width mb30">
                            <figure>
                                <img src="/pages/extra-images/event-grid-03.jpg" alt="">
                                <figcaption class="gt_event_grid_date">
                                    01<span>July</span>
                                </figcaption>
                            </figure>
                            <div class="gt_event_grid_des default_width">
                                <h6>点球大战</h6>
                                <ul class="gt_event_meta">
                                    <li><i class="fa fa-map-marker"></i>作者：XXX</li>
                                </ul>
                                <p>简介blablablablablabla</p>
                                <a href="#">查看详情</a>
                                <!-- <a href="#">Register</a> -->
                            </div>
                        </div>
                    </div>
                    <div class="col-md-3 col-sm-6">
                        <div class="gt_event_grid default_width mb30">
                            <figure>
                                <img src="/pages/extra-images/event-grid-04.jpg" alt="">
                                <figcaption class="gt_event_grid_date">
                                    01<span>July</span>
                                </figcaption>
                            </figure>
                            <div class="gt_event_grid_des default_width">
                                <h6>点球大战</h6>
                                <ul class="gt_event_meta">
                                    <li><i class="fa fa-map-marker"></i>作者：XXX</li>
                                </ul>
                                <p>简介blablablablablabla</p>
                                <a href="#">查看详情</a>
                                <!-- <a href="#">Register</a> -->
                            </div>
                        </div>
                    </div>
                    <div class="col-md-3 col-sm-6">
                        <div class="gt_event_grid default_width mb30">
                            <figure>
                                <img src="/pages/extra-images/event-grid-05.jpg" alt="">
                                <figcaption class="gt_event_grid_date">
                                    01<span>July</span>
                                </figcaption>
                            </figure>
                            <div class="gt_event_grid_des default_width">
                                <h6>点球大战</h6>
                                <ul class="gt_event_meta">
                                    <li><i class="fa fa-map-marker"></i>作者：XXX</li>
                                </ul>
                                <p>简介blablablablablabla</p>
                                <a href="#">查看详情</a>
                                <!-- <a href="#">Register</a> -->
                            </div>
                        </div>
                    </div>
                    <div class="col-md-3 col-sm-6">
                        <div class="gt_event_grid default_width mb30">
                            <figure>
                                <img src="/pages/extra-images/event-grid-06.jpg" alt="">
                                <figcaption class="gt_event_grid_date">
                                    01<span>July</span>
                                </figcaption>
                            </figure>
                            <div class="gt_event_grid_des default_width">
                                <h6>点球大战</h6>
                                <ul class="gt_event_meta">
                                    <li><i class="fa fa-map-marker"></i>作者：XXX</li>
                                </ul>
                                <p>简介blablablablablabla</p>
                                <a href="#">查看详情</a>
                                <!-- <a href="#">Register</a> -->
                            </div>
                        </div>
                    </div>
                    <div class="col-md-3 col-sm-6">
                        <div class="gt_event_grid default_width mb30">
                            <figure>
                                <img src="/pages/extra-images/event-grid-07.jpg" alt="">
                                <figcaption class="gt_event_grid_date">
                                    01<span>July</span>
                                </figcaption>
                            </figure>
                            <div class="gt_event_grid_des default_width">
                                <h6>点球大战</h6>
                                <ul class="gt_event_meta">
                                    <li><i class="fa fa-map-marker"></i>作者：XXX</li>
                                </ul>
                                <p>简介blablablablablabla</p>
                                <a href="#">查看详情</a>
                                <!-- <a href="#">Register</a> -->
                            </div>
                        </div>
                    </div>
                    <div class="col-md-3 col-sm-6">
                        <div class="gt_event_grid default_width mb30">
                            <figure>
                                <img src="/pages/extra-images/event-grid-08.jpg" alt="">
                                <figcaption class="gt_event_grid_date">
                                    01<span>July</span>
                                </figcaption>
                            </figure>
                            <div class="gt_event_grid_des default_width">
                                <h6>点球大战</h6>
                                <ul class="gt_event_meta">
                                    <li><i class="fa fa-map-marker"></i>作者：XXX</li>
                                </ul>
                                <p>简介blablablablablabla</p>
                                <a href="#">查看详情</a>
                                <!-- <a href="#">Register</a> -->
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!--Event Grid Wrap End-->
    </div>
    <!--show student work End-->

</div>
<!--Main Content Wrap End-->




<!--Jquery Library-->
<script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
<!--Bootstrap core JavaScript-->
<script src="http://www.jq22.com/jquery/bootstrap-3.3.4.js"></script>
<!--Flex Slider JavaScript-->
<script src="/pages/js/jquery.flexslider-min.js"></script>
<!--Swiper Slider JavaScript-->
<script src="/pages/js/swiper.jquery.min.js"></script>
<!--Owl Carousel JavaScript-->
<script src="/pages/js/owl.carousel.js"></script>
<!--Chosen JavaScript-->
<script src="/pages/js/chosen.jquery.min.js"></script>
<!--Chosen JavaScript-->
<script src="/pages/js/waypoints-min.js"></script>
<!--Pretty Photo Javascript-->
<script src="/pages/js/jquery.prettyPhoto.js"></script>
<!--Custom JavaScript-->
<script src="/pages/js/custom.js"></script>

</body>
</html>
